export const api = {
  // 默认请求就是get请求

  OnUserLogin: {
    url: "/Mall/OnUserLogin",
    name: "小程序用户登录",
    method: "POST",
  },

  GetHomeData: {
    url: "/Mall/GetHomeData",
    name: "获取首页数据",
    method: "POST",
  },

  GetGoodClassList: {
    url: "/Mall/GetGoodClassList",
    name: "获取分类",
    method: "POST",
  },

  LoginByPhoneOneKey: {
    url: "/Mall/LoginByPhoneOneKey",
    name: "手机号一键登录",
    method: "POST",
  },

  GetShopCart: {
    url: "/Mall/GetShopCart",
    name: "获取购物车",
    method: "POST",
  },

  AddCart: {
    url: "/Mall/AddCart",
    name: "放入购物车",
    method: "POST",
  },

  DelShoppingCart: {
    url: "/Mall/DelShoppingCart",
    name: "删除购物车",
    method: "POST",
  },

  DelAddress: {
    url: "/Mall/DelAddress",
    name: "删除收货地址",
    method: "POST",
  },

  GetAddressById: {
    url: "/Mall/GetAddressById",
    name: "获取收货地址",
    method: "POST",
  },
  GetPay: {
    url: "/Mall/GetPay",
    name: "获取支付方式",
    method: "POST",
  },
  DelCartGoods: {
    url: "/Mall/DelCartGoods",
    name: "删除购物车产品",
    method: "POST",
  },
  UpCart: {
    url: "/Mall/UpCart",
    name: "删除购物车产品",
    method: "POST",
  },
  AccExpMoney: {
    url: "/Mall/AccExpMoney",
    name: "计算运费",
    method: "POST",
  },

  GetMallPayment: {
    url: "/Mall/GetMallPayment",
    name: "提交订单",
    method: "POST",
  },
  GetOrderList: {
    url: "/MemberCard/GetOrderList",
    name: "获取订单列表",
    method: "POST",
  },
  CancelOrder: {
    url: "/Mall/CancelOrder",
    name: "取消列表",
    method: "POST",
  },
  OrderDetail: {
    url: "/MemberCard/OrderDetail",
    name: "订单详情",
    method: "POST",
  },
  ConfirmReceipt: {
    url: "/Mall/ConfirmReceipt",
    name: "确认收货",
    method: "POST",
  },
  SetRenewalsPay: {
    url: "/Mall/SetRenewalsPay",
    name: "获取微信支付信息",
    method: "POST",
  },
  GetCouponList: {
    url: "/Mall/GetCouponList",
    name: "获取优惠券列表",
    method: "POST",
  },
  GetCouponById: {
    url: "/MemberCard/GetCouponById",
    name: "获取优惠券详情",
    method: "POST",
  },
  GetStoreInfoByScene: {
    url: "/Mall/GetStoreInfoByScene",
    name: "通过二维码获取店铺详情",
    method: "POST",
  },
  BindStore: {
    url: "/Mall/BindStore",
    name: "绑定店铺",
    method: "POST",
  },
  DelCart: {
    url: "/Mall/DelCart",
    name: "清空购物车",
    method: "POST",
  },
  SetDefaultAddress: {
    url: "/MemberCard/SetDefaultAddress",
    name: "设置默认地址",
    method: "POST",
  },
  OnLogin: {
    url: "/MemberCard/OnLogin",
    name: "登录",
    method: "POST",
  },
  GetMemberData: {
    url: "/MemberCard/GetMemberData",
    name: "获取会员信息",
    method: "POST",
  },
  SystemParam: {
    url: "/MemberCard/SystemParam",
    name: "SystemParam",
    method: "POST",
  },
  CouponList: {
    url: "/MemberCard/CouponList",
    name: "获取礼券列表接口",
    method: "POST",
  },
  DepositGiveData: {
    url: "/MemberCard/DepositGiveData",
    name: " 获取充值赠送方案",
    method: "POST",
  },
  GetMemberDeposit: {
    url: "/MemberCard/GetMemberDeposit",
    name: "分页获取会员卡消费记录",
    method: "POST",
  },
  GetMemberTime: {
    url: "/MemberCard/GetMemberTime",
    name: "次卡方案",
    method: "POST",
  },
  CouponList: {
    url: "/MemberCard/CouponList",
    name: "获取礼券列表接口",
    method: "POST",
  },
  GetMemberPoint: {
    url: "/MemberCard/GetMemberPoint",
    name: "分页获取会员积分记录",
    method: "POST",
  },
  EditDetail: {
    url: "/MemberCard/EditDetail",
    name: "修改会员昵称、性别、生日",
    method: "POST",
  },
  MemberTimeList: {
    url: "/MemberCard/MemberTimeList",
    name: "获取次卡列表",
    method: "POST",
  },
  MemberTimeDtl: {
    url: "/MemberCard/MemberTimeList",
    name: "获取次卡明细",
    method: "POST",
  },
  GetGoodsList: {
    url: "/MemberCard/GetGoodsList",
    name: "获取商品列表",
    method: "POST",
  },
  GetGoodsDetail: {
    url: "/MemberCard/GetGoodsDetails",
    name: "获取商品详情",
    method: "POST",
  },
  GetAddressList: {
    url: "/MemberCard/GetAddressList",
    name: "获取收货地址",
    method: "POST",
  },
  SaveAddress: {
    url: "/MemberCard/SaveAddress",
    name: "保存收货地址",
    method: "POST",
  },
  OrderSubmit: {
    url: "/MemberCard/OrderSubmit",
    name: "提交订单",
    method: "POST",
  },
};
